package xiaomeng.com.xsngame;


import android.media.SoundPool;

public class MusicUtil {

    SoundPool sp;
   int a;
   int b;
    public MusicUtil(){
        SoundPool.Builder spb = new SoundPool.Builder();
        spb.setMaxStreams(2);
        sp = spb.build();
      a=  sp.load(MyApplication.context,R.raw.wing,1);
      b=  sp.load(MyApplication.context,R.raw.hit,1);
    }

    public  void  wing(){
       sp.play(a,1,1,0,0,1);

    }
    public  void  hit(){
        sp.play(b,1,1,0,0,1);
    }

}
